<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
    <title>跳转中...</title>
</head>
<body>
<H4 style="display: none" id="target_url"><%= url %></H4>
<p style="display: none">
    请稍等，<b id="second">3</b>秒后跳转目标页面 <a href="javascript:goBack();">返回</a>
</p>
<!-- Piwik -->
<script type="text/javascript">
    var _paq = _paq || [];
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    (function() {
        var u="//shop1.foreveralone.wang/";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', '1']);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
    })();
</script>
<!-- End Piwik Code -->
<script type="text/javascript">
    var url = document.getElementById("target_url").innerHTML;
    window.location.href = url;
//    var sec = document.getElementById("second");
//    var i = 3;
//    var timer = setInterval(function(){
//        i--;
//        sec.innerHTML = i;
//        if(i===1){
//            window.location.href = "https://" + url;
//        }
//    },1000);

    function goBack(){
        window.history.go(-1);
    }
</script>

</body>
</html>